package com.robot.backend.service.impl.pk;

import com.robot.backend.consumer.WebSocketServer;
import com.robot.backend.mapper.UserMapper;
import com.robot.backend.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.robot.backend.service.pk.pkHandleService;
@Service
public class pkHandleServiceImpl implements pkHandleService{
    @Autowired
    WebSocketServer webSocketServer = new WebSocketServer();
    @Override
    public String startGame(int uid1, int uid2, int winScore, int lostScore) {
        webSocketServer.startGame(uid1,uid2,winScore,lostScore);//开始游戏时传botid
        return "success";
    }
}
